<?php
namespace Admin\Model;
use Think\Model;
class CodeModel extends Model {
	protected $tableName = 'code';
	protected $_validate = [
		['ename','require','名称不能为空！'],
		['ecode','require','优惠码不能为空！'],
	]; 
	protected $_auto = [
		['ename','strip_tags',3,'function'],
		['ecode','strip_tags',3,'function'],
	];
	
	/**
	 * 删除
	 */
	public function del($id) {
		return $this->delete($id);
	}
}

